import matplotlib.pyplot as plt
# from random import choice
from die import Die


die = Die()
results = [die.roll() for _ in range(1000)]

frequencies = [results.count(val) for val in range(1, die.num_sides + 1)]

plt.style.use('classic')
fig, ax = plt.subplots()

ax.bar(list(range(1, die.num_sides + 1)), frequencies)
plt.show()
